<template>
  <div>
    <header class="info-header">
      <p>后台管理</p>
    </header>
    <div class="info-box">
      <el-row class="tac info-tab">
        <el-col style="width: 200px">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            text-color="#444"
            active-text-color="#409eff"
            unique-opened
          >
            <el-submenu index="1">
              <template slot="title">
                <span>用户</span>
              </template>

              <router-link to="/info/user">
                <el-menu-item index="1-1">用户列表</el-menu-item>
              </router-link>
              <router-link to="/info/addUser">
                <el-menu-item index="1-2">新增用户</el-menu-item>
              </router-link>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <span>店铺</span>
              </template>
              <router-link to="/info/storeList">
                <el-menu-item index="2-1">店铺列表</el-menu-item>
              </router-link>
              <router-link to="/info/addStore">
                <el-menu-item index="2-2">新增店铺</el-menu-item>
              </router-link>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <span>商品</span>
              </template>
              <router-link to="/info/goods">
                <el-menu-item index="3-1">商品列表</el-menu-item>
              </router-link>
              <router-link to="/info/addGoods">
                <el-menu-item index="3-2">新增商品</el-menu-item>
              </router-link>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">
                <span>订单</span>
              </template>
              <router-link to="/info/order">
                <el-menu-item index="4-1">订单列表</el-menu-item>
              </router-link>


              <router-link to="/info/AddOrder">
                <el-menu-item index="4-2">新增订单</el-menu-item>
              </router-link>

            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <span>配送</span>
              </template>
              <router-link to="/info/distribution">
                <el-menu-item index="4-1">配送人员列表</el-menu-item>
              </router-link>
              <router-link to="/info/addDistribution">
                <el-menu-item index="4-2">新增配送人员</el-menu-item>
              </router-link>
            </el-submenu>
          </el-menu>
        </el-col>
      </el-row>
      <div class="container">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
export default {
 methods:{}
};
</script>
